<?php

namespace App\Services\Admin;


use App\Models\Attribute;

class AttributeService
{
//    //所有区域
//    public function getArea()
//    {
//        return Attribute::with('allChilds')->where('status','T')->where('parent_id',1)->orderBy('sort','asc')->get();
//    }

    public function getAttributeById($parent_id)
    {
        return Attribute::where('parent_id',$parent_id)->where('status','T')->orderBy('sort','asc')->get();
    }

}